//
//  QuotePrintData.m
//  example
//
//  Created by li on 2018/12/4.
//  Copyright © 2018 li. All rights reserved.
//

#import "QuotePrintData.h"

@implementation QuotePrintKehu


@end

@implementation QuoteItemData

//- (Class)getSubDataClassInArrayForKey:(NSString *)key{
//    return [key isEqualToString:@"itemList"] ? [QuoteItemData class] : [QuotePartData class];
//}

@end

@implementation QuotePartData

@end

@implementation QuotePkgData

- (Class)getSubDataClassInArrayForKey:(NSString *)key{
    return [key isEqualToString:@"itemList"] ? [QuoteItemData class] : [QuotePartData class];
}


@end


@implementation QuotePrintData

- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"kehuInfo"] || [key isEqualToString:@"pkgList"] || [key isEqualToString:@"itemList"]) {
        value = [HSTool getDictionaryFromString:value];
    }
    [super setValue:value forKey:key];
}

- (Class)getSubDataClassInArrayForKey:(NSString *)key{
    return [key isEqualToString:@"itemList"] ? [QuoteItemData class] : [QuotePkgData class];
}

@end
